/**
 * Created by json.lu on 2016/3/23.
 */

/*var mysql=require('mysql');
 var config=require('./config');
 module.exports={
 conn:function(){
 var conn=mysql.createConnection(config.mysqldb );
 conn.connect();
 return conn;
 }
 }*/
var mysql = require( 'mysql' );
var config = require( './config' );
module.exports = function() {
        var conn=mysql.createConnection(config.mysqldb );
            conn.connect();
        return conn;
    }

